package com.htu.controller;

import com.htu.po.Food;
import com.htu.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/BannerController")
public class BannerController {
    @Autowired
    private BannerService bannerService;
    @RequestMapping("/findBannerFood")
    public Food findBannerFood(){
        return  bannerService.findBannerFood();
    }
}
